{% local nums= pageobj:get_nums()%}
<div class="pagination">
  <ul>
  	{%if pageobj['min']>1 then %}
    <li>
      <a href="{{pageobj:url(pageobj['min'])}}" aria-label="Previous">
        <span aria-hidden="true">&laquo;</span>
      </a>
    </li>
    {%end%}
    {% for i,v in ipairs(nums) do%}
    <li {%if v==pageobj['current_page'] then%} class='active'{%end%}><a href="{*pageobj:url(v)*}">{{v}}</a></li>
    {%end%}

  	{%if pageobj['max']< pageobj['total_page'] then %}
    <li>
      <a href="{{pageobj:url(pageobj['max'])}}" aria-label="Next">
        <span aria-hidden="true">&raquo;</span>
      </a>
    </li>
  	{%end %}
  </ul>
</div>
